package com.lizi.core.java.util.list;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.ListIterator;

public class ListMark implements Comparable<Object>{

	@SuppressWarnings({ "unchecked", "rawtypes" })
	public static <T> void sort(List<T> list, Comparator<? super T> c) {
		
		Object[] a = list.toArray();
		Arrays.sort(a, (Comparator) c);
		ListIterator i = list.listIterator();
		for (int j = 0; j < a.length; j++) {
			i.next();
			i.set(a[j]);
		}
	}

	@Override
	public int compareTo(Object o) {
		// TODO Auto-generated method stub
		return 0;
	}
}
